package com.biyabi.pojo;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class Cart implements Serializable {

	private double totalPrice;  //总价格
	
	private Map<String,CartItem> cartItems = new HashMap<String, CartItem>();//购物项


	public double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public Map<String, CartItem> getCartItems() {
		return cartItems;
	}

	public void setCartItems(Map<String, CartItem> cartItems) {
		this.cartItems = cartItems;
	}

	public Cart() {
		super();
	}

	public Cart(double totalPrice, Map<String, CartItem> cartItems) {
		super();
		this.totalPrice = totalPrice;
		this.cartItems = cartItems;
	}


}
